Schema Directives
例
code:graphql
directive @deprecated(
reason: String = "No longer supported"
) on FIELD_DEFINITION | ENUM_VALUE
type ExampleType {
newField: String
oldField: String @deprecated(reason: "Use newField.")
}
@deprecated
@skip
@include
何が嬉しいか?